#ifndef QW_IMAGE_VIEWER_H
#define QW_IMAGE_VIEWER_H

#include <QWidget>
#include <QImage>
#include <QLabel>

#include <QKeyEvent>

class QwImageViewer : public QWidget
{
    Q_OBJECT
    
public:
    QwImageViewer( const int width, const int height );

signals:
    void cmdReceived( QKeyEvent* event );

public slots:
    void refresh( const QImage* image );
    
protected:
    void keyPressEvent( QKeyEvent* event );

private:
    QLabel* image_label;
};

#endif //GWIMAGE_VIEWER_H
